<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title><?= $event_data['name'] ?></title>
<link rel="dns-prefetch" href="http://res.wx.qq.com">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/plugins/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/plugins/font-awesome/4.3.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/themes/global/global.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/themes/wechat/vote/style.css">
<script src="__PUBLIC__/plugins/jquery/2.1.3/jquery.min.js"></script>
<script src="__PUBLIC__/plugins/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/js/global.js"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script src="__PUBLIC__/js/wechat/vote/detail.js"></script>
<script >
var share_data = <?= json_encode($share_data) ?> ;
$(function(){
    Detail.init(<?php echo json_encode( $config ) ?>);
});

wx.config({
  debug   : false ,
  appId   : '<?php echo $js_config["appId"]; ?>' ,
  timestamp: <?php echo $js_config["timestamp"]; ?>,
  nonceStr: '<?php echo $js_config["nonceStr"];?>',
  signature: '<?php echo $js_config["signature"];?>',
  jsApiList: [
    'onMenuShareTimeline' ,
    'onMenuShareAppMessage',
    'onMenuShareQQ' ,
    'onMenuShareWeibo'
  ]
});

</script>
</head>

<body>
<div class="container">
  <!-- 背景 -->
  <div class="bg" >
    <img src="<?= U($event_data['bg_img']) ?>" class="img-responsive">
  </div>
      
  <div class="player-detail">
    <h4>
      <?= $player_data['truename'] ?> 
      <span class="label label-info"><?= $player_data['code']?></span>
    </h4>
    <p style="float:left"><span id="player_vote_<?= $player_data['id'] ?>"><?= $player_data['vote_count']?></span> 票</p>
    <p class="text-right">
      &nbsp;
      <?php if ( $player_data['status'] == 1 ) :?>
      <a href="#" class="btn btn-danger" id="do_vote" data-id="<?= $player_data['id']?>" role="button"><i class="fa fa-thumbs-up"></i></a>
      <?php else :?>
      待审核
      <?php endif ; ?>
    </p>
    <div class="player-desc">
      <?= $player_data['desc'] ?>
    </div>
    <div class="player-desc">
      <?= $player_data['desc1'] ?>
    </div>
    <div class="player-desc">
      <?= $player_data['desc2'] ?>
    </div>

  </div>
  
  <div class="player-img">
    <img src="<?= U($player_data['icon']) ?>" class="img-responsive img-thumbnail">
    <?php foreach( $attach_data as $row ) : ?>
    <img src="<?= U($row['savepath']) ?>" class="img-responsive img-thumbnail">
    <?php endforeach; ?>
  </div>
  
  <!-- 报名按钮 -->
  <div class="sign">
    <a href="<?= $config['signin_url'] ?>" class="btn btn-success btn-block" id="signin_btn"><i class="fa fa-sign-in"></i> 我要报名</a>
  </div>
  
  <!-- 规则 -->
  <div class="rule">
    <?= $event_data['rule'] ?>
  </div>
  
  <!-- 脚 -->
  <div class="footer">
    <img src="<?= U($event_data['footer_img']) ?>" class="img-responsive">
  </div>
  
</div>

</body>
</html>
